Nvim recognizes the following events. Names are case-insensitive.
BufAdd
Just after creating a new buffer which is
added to the buffer list, or adding a buffer
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
<?php | |
it('redirects to the correct Google sign in url', function () { | |
$driver = Mockery::mock('Laravel\Socialite\Two\GoogleProvider'); | |
$driver->shouldReceive('redirect') | |
->andReturn(new RedirectResponse('https://redirect.url')); | |
Socialite::shouldReceive('driver')->andReturn($driver); | |
$this->get(route('oauth.redirect', 'google')) |
defmodule OperationsTest do | |
use ExUnit.Case, async: true | |
def make_mod() do | |
String.to_atom("Elixir.Test#{System.unique_integer([:positive])}") | |
end | |
describe "operation/2" do | |
setup do | |
mod = make_mod() |
shader_type canvas_item; | |
const vec4 background = vec4(1., 1., 1., 0.); | |
float dist(vec4 c1, vec4 c2) { | |
return (c1 == c2) ? 0.0 : abs(c1.r - c2.r) + abs(c1.g - c2.g) + abs(c1.b - c2.b); | |
} | |
bool similar(vec4 c1, vec4 c2, vec4 input) { | |
return (c1 == c2 || (dist(c1, c2) <= dist(input, c2) && dist(c1, c2) <= dist(input, c1))); |
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Francophonie\Eudic\Customer Info] | |
"SerialCode"="cracked by Archon" | |
"TimesLeft3"=dword:000c85e7 | |
"regDate"="2024/1/1 00:00:00" | |
"LicenseCode"="cracked by Archon" |
# Start the tmux session if not alraedy in the tmux session | |
if [[ ! -n $TMUX ]]; then | |
# Get the session IDs | |
session_ids="$(tmux list-sessions)" | |
# Create new session if no sessions exist | |
if [[ -z "$session_ids" ]]; then | |
tmux new-session | |
fi |
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders | |
# The produced PDF files are stored in the invocation folder | |
# | |
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf | |
# Thanks to MFT, takabanana, ComFreek | |
# | |
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system. | |
# You can allow them by calling PowerShell as an Administrator and typing | |
# ``` | |
# Set-ExecutionPolicy Unrestricted |